# 开发者: wang
# 开发时间：2021/12/1 0001 14:18
a = 2 + 7
print(a)

# 链式赋值
b = c = d = 20
print(b, id(b))  # 指向的都是同一个 目标地址
print(c, id(c))
print(d, id(d))

print('--------------------等量赋值-----------------------')
b += 20
c -= 10
print(b)
print(c)

print('--------------------多个赋值-----------------------')
e, f, g = 20, 30, 40
print(e, f, g)

print('--------------------交互赋值-----------------------')
p, m = 90, 100
print('交换之前', p, m)
p, m = m, p
print('交换之后', p, m)
